#include<bits/stdc++.h>
using namespace std;
signed main() {
    int a, b, c, d;
    cin >> a >> b >> c >> d;

    if((c >= b || d >= b) || (c >= a && d >= a))
        cout << c << "-Y " << d << "-Y\n";
    else if(c < a && d >= a)
        cout << c << "-N " << d << "-Y\n";
    else if(d < a && c >= a)
        cout << c << "-Y " << d << "-N\n";
    else if(c < a && d < a)
        cout << c << "-N " << d << "-N\n";

    if(c >= a && d >= a)
        cout << "huan ying ru guan";
    if(c >= b && d < a)
        cout << "qing 1 zhao gu hao 2";
    if(d >= b && c < a)
        cout << "qing 2 zhao gu hao 1";
    if(c < a && d < a)
        cout << "zhang da zai lai ba";
    if(a <= c && c < b && d < a)
        cout << "1: huan ying ru guan";
    if(a <= d && d < b && c < a)
        cout << "2: huan ying ru guan";

    return 0;
}

